﻿using AutoMapper;
using B.S.Database.Domain.Entity;
using B.S.Database.Write.Api.Application.Commands;
using B.S.Database.Write.Api.Application.Commands.Breeding;
using B.S.Database.Write.Api.Application.Commands.Image;
using B.S.Database.Write.Api.Application.Commands.Processing;
using B.S.Database.Write.Api.Application.Commands.Slaughter;
using B.S.Database.Write.Api.Application.Commands.Traceability;

namespace B.S.Database.Write.Api
{
    public class Mapprofile:Profile
    {
        public Mapprofile()
        {
            CreateMap<TraceabilityCreateCommands,Basic_Traceability>().ReverseMap();
            CreateMap<User,LoginCreateCommands>().ReverseMap();
            CreateMap<UserRole,LoginCreateCommands>().ReverseMap();
            CreateMap<TraceabilityUpdateCommands,Basic_Traceability>().ReverseMap();
            CreateMap<Breeding_Information,BreedingCreateCommands>().ReverseMap();
            CreateMap<Picture_Information,PictureCreateCommands>().ReverseMap();
            CreateMap<Company_Information,CompanyCreateCommands>().ReverseMap();
            CreateMap<Immune_Infomation,ImmuneCreateCommands>().ReverseMap();
            CreateMap<Slaughter_Information,SlaughterCreateCommands>().ReverseMap();
            CreateMap<Company_Information,CompanyCreatesCommands>().ReverseMap();
            CreateMap<Processing_Infomation,ProcessingCreateCommands>().ReverseMap();
            CreateMap<Supplier,SupplierCreateCommands>().ReverseMap();
            CreateMap<Company_Information,CompanyCreateessCommands>().ReverseMap();
        }
    }
}
